﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SYH.Domain.Common
{
    /// <summary>
    /// 附件关联表
    /// </summary>
    public class AccAssociation : BaseEntity
    {
        public AccAssociation() : base()
        {
            InDate = DateTime.Now;
        }
        /// <summary>
        /// 关联id
        /// </summary>
        public Guid Association { get; set; }
        /// <summary>
        /// 定位编码
        /// </summary>
        [StringLength(50)]
        public string PosCode { get; set; }

        /// <summary>
        /// 内容文本
        /// </summary>
        public string Body { get; set; }

        /// <summary>
        /// word文档之类的
        /// </summary>
        public string Code { get; set; }

        ///// <summary>
        ///// 所属公司或单位
        ///// </summary>
        public Guid CorpID { get; set; }

        ///// <summary>
        ///// 上传时间
        ///// </summary>
        public DateTime InDate { get; set; }

        /// <summary>
        /// 附件id
        /// </summary>
        [ForeignKey("BusinessFile")]
        public Guid AnnexID { get; set; }

        public virtual BusinessFile BusinessFile { get; set; }
    }
}
